package com.divo.core.misc;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.jboss.seam.Component;
import org.jboss.seam.example.divo.service.HotelService;

public class BaseServlet extends HttpServlet {

    private ExtendedIdentity identity;

    protected ExtendedIdentity getIdentity() throws ServletException {
	if (identity==null) 
	    identity = (ExtendedIdentity) Component.getInstance(ExtendedIdentity.class);
	
	return identity;
    }
}
